package com.bungarus.group.service;

import com.bungarus.group.model.Group;
import com.bungarus.group.model.GroupMember;
import com.bungarus.group.model.Member;

import java.util.List;

/**
 * Created by tang on 2018/12/7.
 */
public interface GroupService {
    String UNKNOWN = "UNKNOWN";

    Group createGroup(Group group);

    void deleteGroup(Group group);

    GroupMember addMember(final long gid, Member member);

    GroupMember addMember(Group group, Member member);

    void addMembers(final long gid, List<Member> members);

    void addMembers(Group group, List<Member> members);

    List<Member> getMembers(Group group, final int offset, final int size);

    int totalMemberCount(Group group);
}
